package com.wakyde.demo02;

/**
 * @Description: TODO
 * @author: wakyde
 * @date: 2022年05月21日 9:56
 */
public class UserProxy{
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void add(){
        System.out.println("执行添加之前");
        userService.add();
    }

    public void delete(){
        System.out.println("执行删除之前");
        userService.delete();
    }

    public void update(){
        System.out.println("执行更新之前");
        userService.update();
    }

    public void select(){
        System.out.println("执行查询之前");
        userService.select();
    }
}
